import {
    BaseEntity,
    Entity,
    Column,
    Index,
    PrimaryGeneratedColumn
} from 'typeorm'

@Entity()
class KeyStore extends BaseEntity {
    @PrimaryGeneratedColumn('increment')
    id: number | undefined

    @Index({ unique: true })
    @Column({length: 34, readonly: true})
    address: string = ''

    @Column({length: 66, readonly: true})
    privateKey: string = ''
}

export { KeyStore }
